//
//  UserFactory.m
//  text888888
//
//  Created by lanou3g on 16/3/24.
//  Copyright © 2016年 田飞. All rights reserved.
//

#import "UserFactory.h"
@interface CDUser : NSObject<CDUserModelDelegate>
@property(nonatomic,strong)NSString *userId;
@property(nonatomic,strong)NSString *username;
@property(nonatomic,strong)NSString *avatarUrl;
@end
@implementation CDUser



@end


@implementation UserFactory

- (void)cacheUserByIds:(NSSet *)userIds block:(AVIMBooleanResultBlock)block{
    block(YES,nil);

}


- (id<CDUserModelDelegate>)getUserById:(NSString *)userId{

    CDUser *user = [[CDUser alloc] init];
    //在cell中显示聊天对象的ID
    user.userId = userId;
    //在cell显示聊天对象的名字
    user.username = userId;
    //显示用户头像
    user.avatarUrl = @"http://img5.duitang.com/uploads/blog/201510/14/20151014103629_yGEJV.jpeg";
    return  user;
}










@end
